Police are praising the actions taken by a 13-year-old after he stopped his father attacking his mother with a sword.